package hfcas.nic.bodyinfo;




import hfcas.nic.InfoClass.PersonalInfo;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

public class BodyInfoReportTool {
	private PersonalInfo personalInfo;
	private String reportId;
	//private BodyWeightInfo bodyWeightInfo;
	//private Past3BodyInfo past3BodyInfo;
	public BodyInfoReportTool(PersonalInfo personalInfo,String reportId) {
		// TODO Auto-generated constructor stub
		this.personalInfo=personalInfo;
		this.reportId=reportId;
		//this.bodyWeightInfo=bodyWeightInfo;
		//this.past3BodyInfo=past3BodyInfo;
	}

	public Intent getIntent(Context context)
	{
		//build database to store body standards
		//DataHelper dbhelper = new DataHelper(context);
		//SQLiteDatabase db = dbhelper.getWritableDatabase();
		//db.insert("body_weight_std", nullColumnHack, values)
		
		
		//db.insert("body_fat_std", null, cValues);
		
		//dbhelper.close();
		//Log.i("count",String.valueOf(db.query("body_fat_std", new String[]{"_id"},null, null, null,null, null, null).getCount()));
		//Log.i("count1",String.valueOf(db.query("body_nut_std", null,null, null, null, null, null).getCount()));
		//db.close();
		Intent intent = new Intent();
		intent.setClass(context, BodyInfoReport.class);
		intent.putExtra("personalInfo", personalInfo);
		intent.putExtra("reportId", reportId);
		intent.putExtra("activityName", context.getClass().toString().substring(context.getClass().toString().lastIndexOf('.')+1));
		//intent.putExtra("bodyweightInfo", bodyWeightInfo);
	//	intent.putExtra("past3bodyInfo", past3BodyInfo);
		return intent;
	}
	
}
